home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer)…68k, x86, SPARC, PA-RISC] / NeXTSTEP 3.3 Dev Intel.iso / usr / sybase / doc / dbaltop.man < prev    next >
Text File  |  1993-04-22  |  3KB  |  89 lines

  1.  
  2.   1                       Version 4.0 -- 5/1/89                  dbaltop
  3.   ______________________________________________________________________
  4.  
  5.   NAME:  dbaltop
  6.  
  7.   FUNCTION:
  8.        Return the type of aggregate operator for  a  particular  compute
  9.        column.
  10.  
  11.   SYNTAX:
  12.        int dbaltop(dbproc, computeid, column)
  13.  
  14.        DBPROCESS *dbproc;
  15.        int       computeid;
  16.        int       column;
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.   dbaltop                 Version 4.0 -- 5/1/89                        2
  25.   ______________________________________________________________________
  26.  
  27.   COMMENTS:
  28.  
  29.        o This routine returns the type of aggregate operator for a  par-
  30.          ticular column in a compute.  For example, given the SQL state-
  31.          ment:
  32.  
  33.               select dept, name from employee
  34.                 order by dept, name
  35.                 compute count(name) by dept
  36.  
  37.          the call dbaltop(dbproc, 1, 1) will return the token value  for
  38.          count  since  the first aggregate operator in the first compute
  39.          is a count.
  40.        o You can convert the token value to a readable token string with
  41.          dbprtype().   See  the dbprtype() manual page for a list of all
  42.          token values and their equivalent token strings.
  43.  
  44.  
  45.  
  46.   3                       Version 4.0 -- 5/1/89                  dbaltop
  47.   ______________________________________________________________________
  48.  
  49.   PARAMETERS:
  50.        dbproc -  A pointer to the DBPROCESS structure that provides  the
  51.            connection for a particular front-end/SQL Server process.  It
  52.            contains all the information that DB-Library uses  to  manage
  53.            communications and data between the front end and SQL Server.
  54.        computeid -  The id that identifies the particular compute row of
  55.            interest.   A  SQL SELECT statement may have multiple COMPUTE
  56.            clauses, each of which returns a separate compute  row.   The
  57.            computeid  corresponding  to  the  first  COMPUTE clause in a
  58.            SELECT is 1.  The computeid is  returned  by  dbnextrow()  or
  59.            dbgetrow().
  60.        column -  The number of the column of interest.  The first column
  61.            is number 1.
  62.  
  63.   RETURNS:
  64.        A token value for the type  of  the  compute  column's  aggregate
  65.  
  66.  
  67.  
  68.   dbaltop                 Version 4.0 -- 5/1/89                        4
  69.   ______________________________________________________________________
  70.        operator.
  71.  
  72.   SEE ALSO:
  73.        dbadata, dbadlen, dbaltlen, dbnextrow, dbnumalts, dbprtype
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.